<?php


namespace App\Constants;


class Integral
{
    // 积分状态：消费积分
    const CONSUME_INTEGRAL = 1;

    // 积分状态：分享积分
    const SHARE_INTEGRAL = 2;

    // 积分状态：平台设置
    const PLATFORM_SET_INTEGRAL = 3;

    // 积分状态：邀请积分
    const INVITATION_INTEGRAL = 4;

    // 积分状态：退还积分
    const REFUND_INTEGRAL = 5;

    // 积分状态列表
    const STATUS_LIST = [
      self::CONSUME_INTEGRAL => '消费积分',
      self::SHARE_INTEGRAL => '分享积分',
      self::PLATFORM_SET_INTEGRAL => '平台设置',
      self::INVITATION_INTEGRAL => '邀请积分',
      self::REFUND_INTEGRAL => '退还积分',
    ];

    // 积分类型：收入积分
    const INCOME_TYPE = 1;

    // 积分类型：支出积分
    const CONSUME_TYPE = 2;

    // 类型列表
    const TYPE_LIST = [
        self::INCOME_TYPE => '收入',
        self::CONSUME_TYPE => '支出',
    ];

}